# ~*~ coding: utf-8 ~*~
from flask import request


def is_ajax():
    request_type = request.headers.get('X-Requested-With')
    if "XMLHttpRequest" == request_type:
        return True
    else:
        return False
